package com.ninja.sqlSession;

import com.ninja.pojo.config.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {
    //查询列表
    public <E> List<E> selectList(MappedStatement mappedStatement, Object... param) throws Exception;
    //查询单个
    public <T> T selectOne(MappedStatement mappedStatement, Object... param) throws Exception;
    //为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass) throws SQLException;

    public int notQuery(MappedStatement mappedStatement,Object... param) throws Exception;
}
